package com.jiang.demo2.service;

import com.jiang.demo2.map.UserInfoDao;
import com.jiang.demo2.table.UserInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserInfoService {

    @Autowired
    private UserInfoDao userInfoDao;

    public UserInfo getUserByCode(String code){
        return userInfoDao.getUserInfo(code);
    }

}
